package com.engine4cloud.tdf.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.engine4cloud.tdf.admin.api.dto.UserRoleResultDTO;
import com.engine4cloud.tdf.admin.api.entity.SysUserRole;
import com.engine4cloud.tdf.admin.mapper.SysUserRoleMapper;
import com.engine4cloud.tdf.admin.service.SysUserRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户角色表 服务实现类
 * </p>
 *
 * @author tdf
 * @since 2017-10-29
 */
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements SysUserRoleService {
    @Override
    public List<UserRoleResultDTO> listByUserId(Long userId) {
        return this.baseMapper.listByUserId(userId);
    }
}
